home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 6a 66 2e 69 6e |Path: ne|ws.jf.in|
|00000010| 74 65 6c 2e 63 6f 6d 21 | 6e 65 77 73 0a 46 72 6f |tel.com!|news.Fro|
|00000020| 6d 3a 20 43 65 72 6f 20 | 4b 65 6c 76 69 6e 20 3c |m: Cero |Kelvin <|
|00000030| 52 6f 64 6e 65 79 5f 4b | 6f 72 6e 40 63 63 6d 2e |Rodney_K|orn@ccm.|
|00000040| 6a 66 2e 69 6e 74 65 6c | 2e 63 6f 6d 3e 0a 4e 65 |jf.intel|.com>.Ne|
|00000050| 77 73 67 72 6f 75 70 73 | 3a 20 63 6f 6d 70 2e 6c |wsgroups|: comp.l|
|00000060| 61 6e 67 2e 63 2b 2b 0a | 53 75 62 6a 65 63 74 3a |ang.c++.|Subject:|
|00000070| 20 52 65 3a 20 41 63 63 | 65 73 73 20 43 4f 4d 20 | Re: Acc|ess COM |
|00000080| 70 6f 72 74 20 69 6e 20 | 4d 53 56 43 2b 2b 34 2e |port in |MSVC++4.|
|00000090| 30 0a 44 61 74 65 3a 20 | 4d 6f 6e 2c 20 32 36 20 |0.Date: |Mon, 26 |
|000000a0| 46 65 62 20 31 39 39 36 | 20 31 31 3a 33 38 3a 34 |Feb 1996| 11:38:4|
|000000b0| 34 20 2d 30 38 30 30 0a | 4f 72 67 61 6e 69 7a 61 |4 -0800.|Organiza|
|000000c0| 74 69 6f 6e 3a 20 4e 6f | 6e 65 0a 4d 65 73 73 61 |tion: No|ne.Messa|
|000000d0| 67 65 2d 49 44 3a 20 3c | 33 31 33 32 30 43 34 34 |ge-ID: <|31320C44|
|000000e0| 2e 37 30 43 43 40 63 63 | 6d 2e 6a 66 2e 69 6e 74 |.70CC@cc|m.jf.int|
|000000f0| 65 6c 2e 63 6f 6d 3e 0a | 52 65 66 65 72 65 6e 63 |el.com>.|Referenc|
|00000100| 65 73 3a 20 3c 34 67 72 | 62 38 61 24 6b 61 66 40 |es: <4gr|b8a$kaf@|
|00000110| 74 73 74 2e 68 6b 2e 73 | 75 70 65 72 2e 6e 65 74 |tst.hk.s|uper.net|
|00000120| 3e 0a 4e 4e 54 50 2d 50 | 6f 73 74 69 6e 67 2d 48 |>.NNTP-P|osting-H|
|00000130| 6f 73 74 3a 20 72 6b 6f | 72 6e 2e 6a 66 2e 69 6e |ost: rko|rn.jf.in|
|00000140| 74 65 6c 2e 63 6f 6d 0a | 4d 69 6d 65 2d 56 65 72 |tel.com.|Mime-Ver|
|00000150| 73 69 6f 6e 3a 20 31 2e | 30 0a 43 6f 6e 74 65 6e |sion: 1.|0.Conten|
|00000160| 74 2d 54 79 70 65 3a 20 | 74 65 78 74 2f 70 6c 61 |t-Type: |text/pla|
|00000170| 69 6e 3b 20 63 68 61 72 | 73 65 74 3d 75 73 2d 61 |in; char|set=us-a|
|00000180| 73 63 69 69 0a 43 6f 6e | 74 65 6e 74 2d 54 72 61 |scii.Con|tent-Tra|
|00000190| 6e 73 66 65 72 2d 45 6e | 63 6f 64 69 6e 67 3a 20 |nsfer-En|coding: |
|000001a0| 37 62 69 74 0a 58 2d 4d | 61 69 6c 65 72 3a 20 4d |7bit.X-M|ailer: M|
|000001b0| 6f 7a 69 6c 6c 61 20 32 | 2e 30 20 28 57 69 6e 39 |ozilla 2|.0 (Win9|
|000001c0| 35 3b 20 49 29 0a 54 6f | 3a 20 50 65 74 65 72 20 |5; I).To|: Peter |
|000001d0| 41 6c 65 78 61 6e 64 65 | 72 20 53 63 68 69 6e 64 |Alexande|r Schind|
|000001e0| 6c 65 72 20 3c 6d 6f 73 | 63 6f 77 40 6e 65 77 73 |ler <mos|cow@news|
|000001f0| 2e 68 6b 2e 73 75 70 65 | 72 2e 6e 65 74 3e 0a 0a |.hk.supe|r.net>..|
|00000200| 4f 6e 65 20 70 72 6f 62 | 6c 65 6d 20 69 6e 20 79 |One prob|lem in y|
|00000210| 6f 75 72 20 63 6f 64 65 | 20 69 73 20 74 68 61 74 |our code| is that|
|00000220| 20 74 68 65 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 | the poi|nter to |
|00000230| 6e 75 6d 62 65 72 20 6f | 66 20 62 79 74 65 73 20 |number o|f bytes |
|00000240| 77 72 69 74 74 65 6e 20 | 0a 69 73 20 6e 6f 74 20 |written |.is not |
|00000250| 62 61 63 6b 65 64 20 62 | 79 20 61 6e 79 20 6d 65 |backed b|y any me|
|00000260| 6d 6f 72 79 2e 20 20 54 | 68 65 20 64 65 63 6c 61 |mory. T|he decla|
|00000270| 72 61 74 69 6f 6e 20 73 | 68 6f 75 6c 64 20 68 61 |ration s|hould ha|
|00000280| 76 65 20 62 65 65 6e 20 | 61 20 44 57 4f 52 44 20 |ve been |a DWORD |
|00000290| 0a 6e 6f 74 20 61 20 4c | 50 44 57 4f 52 44 20 61 |.not a L|PDWORD a|
|000002a0| 6e 64 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 68 61 |nd you s|hould ha|
|000002b0| 76 65 20 70 61 73 73 65 | 64 20 69 74 27 73 20 61 |ve passe|d it's a|
|000002c0| 64 64 72 65 73 73 20 74 | 6f 20 57 72 69 74 65 46 |ddress t|o WriteF|
|000002d0| 69 6c 65 2e 0a 0a 54 68 | 65 20 6c 70 4e 75 6d 4f |ile...Th|e lpNumO|
|000002e0| 66 42 79 74 65 73 57 72 | 69 74 74 65 6e 20 77 69 |fBytesWr|itten wi|
|000002f0| 6c 6c 20 70 6f 69 6e 74 | 20 74 6f 20 67 61 72 62 |ll point| to garb|
|00000300| 61 67 65 20 74 68 65 20 | 77 61 79 20 79 6f 75 20 |age the |way you |
|00000310| 68 61 76 65 20 77 72 69 | 74 74 65 6e 20 0a 74 68 |have wri|tten .th|
|00000320| 69 73 2e 0a 0a 0a 0a 50 | 65 74 65 72 20 41 6c 65 |is.....P|eter Ale|
|00000330| 78 61 6e 64 65 72 20 53 | 63 68 69 6e 64 6c 65 72 |xander S|chindler|
|00000340| 20 77 72 6f 74 65 3a 0a | 3e 20 0a 3e 20 48 61 73 | wrote:.|> .> Has|
|00000350| 20 61 6e 79 62 6f 64 79 | 20 74 72 69 65 64 20 74 | anybody| tried t|
|00000360| 6f 20 61 63 63 65 73 73 | 20 43 4f 4d 20 70 6f 72 |o access| COM por|
|00000370| 74 73 20 75 73 69 6e 67 | 20 74 68 65 20 41 50 49 |ts using| the API|
|00000380| 20 69 6e 20 4d 53 56 43 | 2b 2b 34 2e 30 3f 20 20 | in MSVC|++4.0? |
|00000390| 49 20 68 61 76 65 0a 3e | 20 62 65 65 6e 20 68 61 |I have.>| been ha|
|000003a0| 76 69 6e 67 20 74 72 6f | 75 62 6c 65 73 20 75 73 |ving tro|ubles us|
|000003b0| 69 6e 67 20 74 68 65 20 | 57 72 69 74 65 46 69 6c |ing the |WriteFil|
|000003c0| 65 28 29 20 66 75 6e 63 | 74 69 6f 6e 2e 20 20 54 |e() func|tion. T|
|000003d0| 68 65 20 63 6f 64 65 20 | 49 20 77 72 69 74 65 20 |he code |I write |
|000003e0| 69 73 0a 3e 20 6c 69 6b | 65 20 74 68 69 73 3a 0a |is.> lik|e this:.|
|000003f0| 3e 20 0a 3e 20 20 20 20 | 20 20 20 20 20 48 41 4e |> .> | HAN|
|00000400| 44 4c 45 20 68 43 6f 6d | 3b 0a 3e 20 20 20 20 20 |DLE hCom|;.> |
|00000410| 20 20 20 20 63 68 61 72 | 20 2a 62 75 66 66 65 72 | char| *buffer|
|00000420| 20 3d 20 22 78 78 78 22 | 3b 0a 3e 20 20 20 20 20 | = "xxx"|;.> |
|00000430| 20 20 20 20 4c 50 44 57 | 4f 52 44 20 6c 70 4e 75 | LPDW|ORD lpNu|
|00000440| 6d 4f 66 42 79 74 65 73 | 57 72 69 74 74 65 6e 3b |mOfBytes|Written;|
|00000450| 0a 0a 20 20 20 20 20 20 | 20 20 20 20 44 57 4f 52 |.. | DWOR|
|00000460| 44 20 64 77 4e 75 6d 4f | 66 42 79 74 65 73 57 72 |D dwNumO|fBytesWr|
|00000470| 69 74 74 65 6e 3b 0a 0a | 3e 20 0a 3e 20 20 20 20 |itten;..|> .> |
|00000480| 20 20 20 20 20 68 43 6f | 6d 20 3d 20 43 72 65 61 | hCo|m = Crea|
|00000490| 74 65 46 69 6c 65 28 22 | 43 4f 4d 32 22 2c 20 47 |teFile("|COM2", G|
|000004a0| 45 4e 45 52 49 43 5f 52 | 45 41 44 7c 47 45 4e 45 |ENERIC_R|EAD|GENE|
|000004b0| 52 49 43 5f 57 52 49 54 | 45 0a 3e 20 20 20 20 20 |RIC_WRIT|E.> |
|000004c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004d0| 20 20 20 20 30 2c 20 4e | 55 4c 4c 20 2c 20 4f 50 | 0, N|ULL , OP|
|000004e0| 45 4e 5f 45 58 49 53 54 | 49 4e 47 2c 20 30 2c 20 |EN_EXIST|ING, 0, |
|000004f0| 4e 55 4c 4c 29 3b 0a 3e | 20 0a 3e 20 20 20 20 20 |NULL);.>| .> |
|00000500| 20 20 20 20 2f 2a 20 63 | 68 65 63 6b 20 65 72 72 | /* c|heck err|
|00000510| 6f 72 20 68 65 72 65 2c | 20 61 6e 64 20 74 68 69 |or here,| and thi|
|00000520| 6e 67 73 20 61 72 65 20 | 6f 6b 20 2a 2f 0a 3e 20 |ngs are |ok */.> |
|00000530| 20 20 20 20 20 20 20 20 | 2f 2a 20 73 65 74 20 63 | |/* set c|
|00000540| 6f 6d 6d 20 70 61 72 61 | 6d 65 74 65 72 73 20 2a |omm para|meters *|
|00000550| 2f 0a 3e 20 0a 3e 20 20 | 20 20 20 20 20 20 20 57 |/.> .> | W|
|00000560| 72 69 74 65 46 69 6c 65 | 28 68 43 6f 6d 2c 20 28 |riteFile|(hCom, (|
|00000570| 4c 50 43 56 4f 49 44 29 | 26 62 75 66 66 65 72 2c |LPCVOID)|&buffer,|
|00000580| 20 73 69 7a 65 6f 66 28 | 62 75 66 66 65 72 29 2c | sizeof(|buffer),|
|00000590| 0a 3e 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.> | |
|000005a0| 20 20 20 6c 70 4e 75 6d | 4f 66 42 79 74 65 73 57 | lpNum|OfBytesW|
|000005b0| 72 69 74 74 65 6e 2c 20 | 4e 55 4c 4c 29 3b 0a 0a |ritten, |NULL);..|
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 57 72 69 74 65 46 | | WriteF|
|000005d0| 69 6c 65 28 68 43 6f 6d | 2c 20 28 4c 50 43 56 4f |ile(hCom|, (LPCVO|
|000005e0| 49 44 29 26 62 75 66 66 | 65 72 2c 20 73 69 7a 65 |ID)&buff|er, size|
|000005f0| 6f 66 28 62 75 66 66 65 | 72 29 2c 0a 20 20 20 20 |of(buffe|r),. |
|00000600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 26 64 | | &d|
|00000610| 77 4e 75 6d 4f 66 42 79 | 74 65 73 57 72 69 74 74 |wNumOfBy|tesWritt|
|00000620| 65 6e 2c 20 4e 55 4c 4c | 29 3b 0a 0a 3e 20 0a 3e |en, NULL|);..> .>|
|00000630| 20 54 68 65 20 65 72 72 | 6f 72 20 45 52 52 4f 52 | The err|or ERROR|
|00000640| 5f 49 4e 56 41 4c 49 44 | 5f 50 41 52 41 4d 45 54 |_INVALID|_PARAMET|
|00000650| 45 52 20 72 65 73 75 6c | 74 73 20 69 6e 20 74 68 |ER resul|ts in th|
|00000660| 65 20 63 61 6c 6c 20 74 | 6f 20 57 72 69 74 65 46 |e call t|o WriteF|
|00000670| 69 6c 65 28 29 2e 0a 3e | 20 43 61 6e 20 61 6e 79 |ile()..>| Can any|
|00000680| 62 6f 64 79 20 6f 66 66 | 65 72 20 6d 65 20 73 6f |body off|er me so|
|00000690| 6d 65 20 68 69 6e 74 73 | 3f 20 20 54 68 61 6e 6b |me hints|? Thank|
|000006a0| 73 20 69 6e 20 61 64 76 | 61 6e 63 65 2e 0a 3e 20 |s in adv|ance..> |
|000006b0| 0a 3e 20 52 67 64 73 2c | 0a 3e 20 57 69 6e 6e 69 |.> Rgds,|.> Winni|
|000006c0| 65 0a 0a 43 65 72 6f 0a | |e..Cero.| |
+--------+-------------------------+-------------------------+--------+--------+